home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 2.zwp / objective_attack.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  4.8 KB  |  240 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8. CreateObjectType("objective_random_attacks", "Objective")
  9. {
  10.   GameObj();
  11.   ObjectiveObj()
  12.   {
  13.     Condition("Timer")
  14.     {
  15.       Time(300, 360);
  16.     }
  17.  
  18.     Action()
  19.     {
  20.       NewRandomObjective()
  21.       {
  22.         Add("objective_attack1", 25);
  23.         Add("objective_explore1", 5);
  24.         Add("objective_attack2", 30);
  25.         Add("objective_attack3", 15);
  26.         Add("objective_explore2", 10);
  27.       }
  28.     }
  29.   }
  30. }
  31.  
  32. CreateObjectType("objective_attack1", "Objective")
  33. {
  34.   GameObj();
  35.   ObjectiveObj()
  36.   {
  37.    Condition("TRUE");
  38.  
  39.     Action()
  40.     {
  41.       ExecuteScript("attack1*", "squad.move.typebasetotrail")
  42.       {
  43.         Op("%.types", "=", "attack1");
  44.         Op("%.base", "=", "Base");
  45.         Op("%.trail", "=", "AttackPath2");
  46.         Op("%.attack", "=", 1);
  47.         Op("%.acceptInsufficient", "=", 1);
  48.       }
  49.       NewObjective("objective_random_attacks");
  50.     }
  51.   }
  52. }
  53.  
  54. CreateObjectType("objective_explore1", "Objective")
  55. {
  56.   GameObj();
  57.   ObjectiveObj()
  58.   {
  59.    Condition("TRUE");
  60.  
  61.     Action()
  62.     {
  63.       ExecuteScript("explore1*", "squad.explore.typebase")
  64.       {
  65.        Op("%.types", "=", "attack1");
  66.        Op("%.base", "=", "Base");
  67.        Op("%.acceptInsufficient", "=", 1);
  68.       }
  69.       NewObjective("objective_random_attacks");
  70.     }
  71.   }
  72. }
  73.  
  74. CreateObjectType("objective_attack2", "Objective")
  75. {
  76.   GameObj();
  77.   ObjectiveObj()
  78.   {
  79.    Condition("TRUE");
  80.  
  81.     Action()
  82.     {
  83.       ExecuteScript("attack2*", "squad.move.typebasetotrail")
  84.       {
  85.         Op("%.types", "=", "attack2");
  86.         Op("%.base", "=", "Base");
  87.         Op("%.trail", "=", "AttackPath1");
  88.         Op("%.attack", "=", 1);
  89.         Op("%.acceptInsufficient", "=", 1);
  90.       }
  91.       NewObjective("objective_random_attacks");
  92.     }
  93.   }
  94. }
  95.  
  96. CreateObjectType("objective_attack3", "Objective")
  97. {
  98.   GameObj();
  99.   ObjectiveObj()
  100.   {
  101.    Condition("TRUE");
  102.  
  103.     Action()
  104.     {
  105.       ExecuteScript("attack3*", "squad.move.typebasetotrail")
  106.       {
  107.         Op("%.types", "=", "attack3");
  108.         Op("%.base", "=", "Base");
  109.         Op("%.trail", "=", "AttackPath3");
  110.         Op("%.attack", "=", 1);
  111.         Op("%.acceptInsufficient", "=", 1);
  112.       }
  113.       NewObjective("objective_random_attacks");
  114.     }
  115.   }
  116. }
  117.  
  118. CreateObjectType("objective_explore2", "Objective")
  119. {
  120.   GameObj();
  121.   ObjectiveObj()
  122.   {
  123.    Condition("TRUE");
  124.  
  125.     Action()
  126.     {
  127.       ExecuteScript("explore2*", "squad.explore.typebase")
  128.       {
  129.        Op("%.types", "=", "attack2");
  130.        Op("%.base", "=", "Base");
  131.        Op("%.acceptInsufficient", "=", 1);
  132.       }
  133.       NewObjective("objective_random_attacks");
  134.     }
  135.   }
  136. }
  137.  
  138. CreateObjectType("objective_checkion1", "Objective")
  139. {
  140.   GameObj();
  141.   ObjectiveObj()
  142.   {
  143.     Condition("AND")
  144.     {
  145.       Condition("Timer")
  146.       {
  147.         Time(480);
  148.       }
  149.       Condition("OR")
  150.       {
  151.         Condition("InRegion")
  152.         {
  153.           Region("Leftside");
  154.           Team("JDA");
  155.           Type("*")
  156.           {
  157.             Amount(0);
  158.             Operator(">");
  159.           }
  160.         }
  161.         Condition("InRegion")
  162.         {
  163.           Region("monkey_power1");
  164.           Team("JDA");
  165.           Type("*")
  166.           {
  167.             Amount(0);
  168.             Operator(">");
  169.           }
  170.         }
  171.       }
  172.     }
  173.     Action()
  174.     {
  175.       ExecuteScript("checkion1*", "squad.move.typebasetotrail")
  176.       {
  177.         Op("%.types", "=", "attack1");
  178.         Op("%.base", "=", "Base");
  179.         Op("%.trail", "=", "CheckIon1");
  180.         Op("%.attack", "=", 1);
  181.         Op("%.acceptInsufficient", "=", 1);
  182.       }
  183.      NewObjective("objective_checkion1");
  184.     }
  185.   }
  186. }
  187.  
  188. CreateObjectType("objective_checkion2", "Objective")
  189. {
  190.   GameObj();
  191.   ObjectiveObj()
  192.   {
  193.     Condition("AND")
  194.     {
  195.       Condition("Timer")
  196.       {
  197.         Time(480);
  198.       }
  199.       Condition("OR")
  200.       {
  201.         Condition("InRegion")
  202.         {
  203.           Region("Rightside");
  204.           Team("JDA");
  205.           Type("*")
  206.           {
  207.             Amount(0);
  208.             Operator(">");
  209.           }
  210.         }
  211.         Condition("InRegion")
  212.         {
  213.           Region("monkey_power2");
  214.           Team("JDA");
  215.           Type("*")
  216.           {
  217.             Amount(0);
  218.             Operator(">");
  219.           }
  220.         }
  221.       }
  222.     }
  223.     Action()
  224.     {
  225.       ExecuteScript("checkion2*", "squad.move.typebasetotrail")
  226.       {
  227.         Op("%.types", "=", "attack2");
  228.         Op("%.base", "=", "Base");
  229.         Op("%.trail", "=", "CheckIon2");
  230.         Op("%.attack", "=", 1);
  231.         Op("%.acceptInsufficient", "=", 1);
  232.       }
  233.      NewObjective("objective_checkion2");
  234.     }
  235.   }
  236. }
  237.  
  238.  
  239.  
  240.